package com.company.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 公共用户-存储创始人、联系人
 * @author ls
 * @email *****@mail.com
 * @date 2021-02-02 20:27:58
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("common_user")
public class CommonUserEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@TableId("uid")
	private String uid;

	/**
	 * 姓名
	 */
	@TableField("name")
	private String name;

	/**
	 * 单位
	 */
	@TableField("organization")
	private String organization;
	
	/**
	 * 职务
	 */
	@TableField("post")
	private String post;

	/**
	 * 电话
	 */
	@TableField("phone")
	private String phone;

	/**
	 * 邮箱
	 */
	@TableField("email")
	private String email;

	/**
	 * 项目ID
	 */
	@TableField("project_id")
	private String projectId;

	/**
	 * 类型，1:创始人，2:联系人
	 */
	@TableField("type")
	private String type;
	
	@TableField(exist = false)
	private String typeName;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	
	@TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

}
